import { consulateHttp } from '../index';
import qs from 'qs'
interface RequestType {
  doctorName: string,
  doctorExtendCode: string,
  hospId: string,
  doctorDegree: string,
  doctorGrade: string,
  doctorBirthday: string,
  deptId: string | number,
  id?: string
}
export function doctorSave(data: RequestType) {
  return consulateHttp.request({
    method: 'POST',
    data: qs.stringify(data),
    url: '/doctor/save'
  });
}

export function doctorUpdate(data: RequestType) {
  return consulateHttp.request({
    method: 'POST',
    data: qs.stringify(data),
    url: '/doctor/update'
  });
}